class HouseItem:
    def __init__(self, name, area):
        self.name = name
        self.area = area

    def __str__(self):
        return f"{self.name}占地面积{self.area}平米"
class House:
    def __init__(self, H_type, area, list_1):
        self.H_type= H_type
        self.z_area= area
        self.s_area = area
        self.list_1= list_1
        self.H_list=[]
    def __str__(self):
        return f"户型:{self.h_type}、总⾯积:{self.total_area} 平⽶、剩余⾯积:{self.free_area}平⽶、家具名称列表:{self.item_list}"
    def add_items(self,item):
        if self.z_area > self.s_area:
            self.H_list.append(item)



if __name__ == '__main__':
    bed = HouseItem('席梦思', 4)
    chest = HouseItem('衣柜',  2)
    table = HouseItem('餐桌',  1.5)
    print(bed)


